package com.bruce.demo2.patterns.demo1.creational.demo03.abstractFactory;

/**
 * @PROJECT_NAME design_patterns
 * @DESCRIPTION 意大利口味工厂
 * @AUTHOR CNBruceLee
 * @DATE 2021/7/11 14:50
 */
public class ItalyFlavorFactory implements FoodFactory {
    public Coffee createCoffee() {
        Coffee coffee = new LatteCoffee();
        coffee.addMilk();
        coffee.addSugar();
        return coffee;
    }

    public Dessert createDessert() {
        Dessert dessert = new Tiramisu();
        dessert.show();
        return dessert;
    }
}
